//
//  PostAdviceRequest.m
//  collection
//
//  Created by Jing on 7/17/12.
//  Copyright (c) 2012 Tsinghua University. All rights reserved.
//

#import "PostAdviceRequest.h"

@implementation PostAdviceRequest

- (void)initParams {
    
    self.descriptionName = @"user.advice";
    
    PostAdviceRequestData* requestData = [[PostAdviceRequestData alloc] init];
    self.request = requestData;
    [requestData release];
    
    Response* response = [[Response alloc] init];
    self.response = response;
    [response release];
}

- (NSString*)buildRequestURL {
    
    PostAdviceRequestData* requestData = (PostAdviceRequestData*)self.request;
    NSString* requestContent = [NSString stringWithFormat:@"&uid=%lld&text=%@",
                                requestData.UID,
                                requestData.advice];
    
    return requestContent;
}

@end
